package com.lighting.smssystem.utils;

/**
 * @author leemaster
 * @Title: ResponseUtil
 * @Package com.lighting.smssystem.utils
 * @Description:
 * @date 2019-06-0518:04
 */
public class ResponseUtil {

    public static BaseResponse<Object> success(Object data){
        return new BaseResponse<>(200,"Success",data);
    }

    public static BaseResponse success(){
        return new BaseResponse(200,"Success",null);
    }

    public static BaseResponse failed(int code){
        return new BaseResponse(code,"failer",null);
    }

    public static BaseResponse failed(int code, String msg) { return new BaseResponse(code, msg, null); }
}
